package com.hnjfzn.message.sms.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
public class AliConfig {
    private static String appKey;
    private static String appSecret;
    private static String endpoint;

    public static String getAppKey() {
        return appKey;
    }

    @Value("${sms.aliyun.key}")
    public void setAppKey(String appKey) {
        AliConfig.appKey = appKey;
    }

    public static String getAppSecret() {
        return appSecret;
    }

    @Value("${sms.aliyun.secret}")
    public void setAppSecret(String appSecret) {
        AliConfig.appSecret = appSecret;
    }

    public static String getEndpoint() {
        return endpoint;
    }

    @Value("${sms.aliyun.endpoint}")
    public void setEndpoint(String endpoint) {
        AliConfig.endpoint = endpoint;
    }
}
